<?PHP
include 'db.php';

$q=mysql_query("SELECT subjects FROM resources ORDER BY subjects");
while($data = mysql_fetch_row($q))
	echo"$data[0]".PHP_EOL;
mysql_close($link);
?>
